package edu.suda.LoopCodePlus.service;

import edu.suda.LoopCodePlus.entity.SubmissionRecord;
import java.util.List;
import java.util.Set;


public interface SubmissionService {
    /** 根据userId查询题目记录表,找出其中return=="通过"的列 */
    Set<Integer> findAllByUserId(Integer userId,List<Integer> pid);
    //插入一条提交记录
    boolean insertSubmissionRecord(SubmissionRecord submissionRecord);
    //根据用户id和题目id查询提交记录
    List<SubmissionRecord> findSubmissionRecordById(Integer userId, Integer problemId);

}
